﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.TeamFoundation.VersionControl.Client;

namespace TFhisto
{
    public class BranchData
    {
        public bool Selected
        { get; set; }

        public int ID
        { get; set; }

        public int ParentID
        { get; set; }

        public int Level
        { get; set; }
        
        public string Path
        {
            get
            {
                StringBuilder indent = new StringBuilder();
                for(int i=0; i<Level; i++)
                    indent.Append("   ");
                
                return indent.ToString() + Branch.Properties.RootItem.Item;
            }
        }

        public BranchObject Branch
        { get; set; }
    }
}